#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021-12-13 16:35
# @Author : huabao.tan
# @File : demo6.py
# @Software: PyCharm
from test.demo5 import *
from power.objdect_key import *


class WriteExcel(CreatExcel, Discourse):

    def start_write(self):
        try:
            a = 0
            while True:
                a += 1
                value = Discourse.discourse(self)
                CreatExcel.sheet_row_col_value(self, 0, a, 1,value )
                if a == 10:
                    break
                # CreatExcel.open_excel(self).save(self.filename)
                self.open_excel().save(self.filename)
                print(value)
        except Exception as e:
            print(e)
#
w = WriteExcel()
w.start_write()

